<?php

class Core_Controller_Admincp_Widget_Index extends Nuo_Controller_Admincp
{
	function execute($request)
	{
		Nuo::setVar('breadcrum', array(
			'title' => 'Browse Widget',
			'links' => array(
				'admincp' => 'AdminCP',
				'admincp/appearance' => 'Appearance',
			),
			'toolbar' => 'admincp/core/widget'
		));

		$table = Nuo::getTable('core/widget');

		$select = $table -> select() -> where('1');

		$paging = Nuo_Paging::factory($select, $request -> getParam('page', 1), 10);

		return $this -> render(array('paging' => $paging));
	}

}
